package com.gzx.plugin.tjzy.modular.allocate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.common.handler.CommonSm1AesTypeHandler;
import vip.xiaonuo.common.pojo.TenantEntity;

import java.io.Serial;

/**
 * 分案记录对象 gzx_allocate_case_log
 *
 * @author LionLi
 * @date 2024-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(autoResultMap = true)
public class GzxAllocateRecord extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 分案类型，1-分案，2-回收
     */
    private Integer type;

    private String batchNumber;

    /**
     * 关联案件ID
     */
    private Long caseId;

    @TableField(typeHandler = CommonSm1AesTypeHandler.class)
    private String debtorCardId;

    /**
     * 调解员ID
     */
    private Long mediatorId;
}
